class DefaultController < ApplicationController
    
    def index
        @page_title = "Make a Path"
        @popular_paths = Path.find(:all, :conditions => 'paths.id = 4 OR paths.id = 5 OR paths.id = 6', :include => ['user', 'steps'])
        @recent_paths = Path.find(:all, :conditions=> "published = 't'", :limit => 6, :order => 'paths.created_at DESC', :include => ['user', 'steps'])
        respond_to do |format|
            format.html # index.rhtml
            format.xml  { render :action => '../shared/paths_xml.rxml', :layout=>false }
            format.rss  { render :action => '../shared/paths_rss.rxml', :layout=>false }
            format.atom { render :action => '../shared/paths_atom.rxml', :layout=>false }
            format.rdf  { render :action => '../shared/paths_rdf.rxml', :layout=>false }
        end
    end
    
    def bookmarklet
        @page_title = "Get the Make a Path Bookmarklet"
        render
    end
    
end
